import numpy as np
arr1=np.random.randint(1,10,size=(3,3))
print(arr1)
arr2=np.random.randint(1,10,size=3)
print(arr2)
arr3=np.random.rand(3,3) * 10
print(arr3)
print(np.add(arr1,arr3))#加
print(np.multiply(arr1,arr3))#乘
print(np.power(arr1,arr3))#以1为底数2为指数幂
print(np.reciprocal(arr1,dtype='float'))#倒数
print(np.around(arr3,decimals=1))#四舍五入保留一位小数
print(np.cos(arr1*np.pi/180))#余弦值

